package design.pattern.proxy.student;

public class MainTest {

    public static void main(String[] args) {
//        Iwork iwork = new Student();
//        System.out.println(iwork.work());
//
//        Iwork iwork1 = new JavaStudentDecorator(iwork);
//        System.out.println(iwork1.work());
//
//        Iwork iwork2 = new JavaStudentWorkDecorator(iwork1);
//        System.out.println(iwork2.work());


//            Iwork iwork = new JavaStudentProxy();
//            System.out.println( iwork.work());

            Iwork iwork1 = new JavaStudentWorkProxy();
            System.out.println( iwork1.work());
    }
}
